import re

from django import forms
from apps.operation.models import UserFavorite, CourseComments, CourseDiscussComment

'''评论'''


class CommentsForm(forms.ModelForm):
    class Meta:
        model = CourseComments
        fields = ["course", "comments"]
'''讨论评论'''
class DiscussCommentsForm(forms.ModelForm):
    class Meta:
        model = CourseDiscussComment
        fields = ["coursediscuss", "comments"]

'''收藏'''


class UserFavForm(forms.ModelForm):
    class Meta:
        model = UserFavorite
        fields = ["fav_id", "fav_type"]
